﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace MvcTricks.RoundTripModelBinding.TestWebsite.ViewModels
{
    public class OrderLineViewModel
    {

        public ProductViewModel Product { get; set; }
        public int Quantity { get; set; }
        public double Total
        {
            get { return Product.Price * Quantity; }
        }

    }
}